package test2

import "fmt"

type Interger int

func (a Interger) Add(b Interger) Interger {
	return a + b
}

func (a Interger) Multiply(b Interger) Interger {
	return a * b
}

type Math interface {
	Add(i Interger) Interger
	Multiply(i Interger) Interger
}

func Test2() {
	var a Interger = 1
	var m Math = a
	var m2 Math = &a
	fmt.Println(m.Add(1))
	fmt.Println(a)
	fmt.Println(m2.Add(3))
	fmt.Println(a)
}

